package cn.yunhe.service.serviceImpl;

import cn.yunhe.dao.TravellerDao;
import cn.yunhe.entity.Traveller;
import cn.yunhe.service.TravellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TravellerServiceImpl implements TravellerService {

    @Autowired
    private TravellerDao travellerDao;

    @Override
    public List<Traveller> findAll() {
        return travellerDao.findAll();
    }

    @Override
    public List<Traveller> selectById(Integer id) {
        return travellerDao.SelectById(id);
    }

}
